package com.ktjy.pojo;

import cn.afterturn.easypoi.excel.annotation.Excel;
import com.baomidou.mybatisplus.annotation.*;

import java.time.LocalDateTime;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 课程管理
 * </p>
 *
 * @author jjx
 * @since 2025-08-02
 */
@Data
@TableName("tb_course")
public class TbCourse implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 课程id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    /**
     * 课程编号
     */
    @Excel(name = "课程编号", width = 40, orderNum = "1")
    private String code;
    /**
     * 名称
     */
    @Excel(name = "名称", width = 40, orderNum = "3")
    private String name;
    /**
     * 学科
     */
    @Excel(name = "学科", width = 40, orderNum = "2", replace = {"Java_0", "前端_1", "人工智能_2", "大数据_3", "Python_4", "测试_5", "新媒体_6"})
    private String subject;
    /**
     * 价格
     */
    @Excel(name = "价格", width = 40, orderNum = "4")
    private Integer price;
    /**
     * 适合人群
     */
    @Excel(name = "适合人群", width = 40, orderNum = "5", replace = {"小白学员_1", "中级程序员_2"})
    private String applicablePerson;
    /**
     * 课程描述信息
     */
    @Excel(name = "课程描述信息", width = 40, orderNum = "6")
    private String info;

    /**
     * 创建时间
     */
    @Excel(name = "创建时间", width = 40, orderNum = "7")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(updateStrategy = FieldStrategy.NEVER, fill = FieldFill.INSERT)
    private LocalDateTime createTime;


}
